'use strict';

/* Controllers */


function instituteCtrl($scope,$http) {
	$http.get('institute/all.json').success(function(data) {
    $scope.institutes = data;
     $scope.showCreate = function(){
       return !(nexus.headerScope.notLogin);        
    };
  });
}
instituteCtrl.$inject = ['$scope','$http'];//inject required

function createInstCtrl($scope,$http) {	
	$scope.createInst = function (){
		if($scope.institutename==='' || typeof $scope.institutename === "undefined"){// have to add json call
			$scope.error='invalid institue name';
		}
	};
}
createInstCtrl.$inject = ['$scope','$http'];